cmake_minimum_required(VERSION 3.15)
project(npu-smi)
set(CMAKE_CXX_STANDARD 14)
add_definitions(-O0)

include_directories(/usr/local/Ascend/driver/kernel/inc/driver)
link_directories(/usr/local/Ascend/driver/lib64)
link_directories(/usr/local/Ascend/driver/lib64)

add_executable(npu-smi main.cpp /usr/local/Ascend/driver/kernel/inc/driver/dsmi_common_interface.h)
target_link_libraries(npu-smi drvdsmi_host)
